import Layout from '@/layout'

// Layout组件中包含
export default {
  // 左侧导航，是根据路由规则数组第一层对象来动态生成左侧的导航
  //   // 要求每个页面，都要对应一个一级对象
  //   // 总结：每个左侧导航都分别分开对应一次layout，页面挂载二级路由上
  path: '/employees', // 员工
  component: Layout,
  children: [
    {
      path: '',
      name: 'Employees',
      component: () => import('@/views/employees'),
      meta: { title: '员工', icon: 'people' }
    },
    {
      path: 'detail',
      name: 'employeesDetail',
      component: () => import('@/views/employees/detail.vue'),
      meta: { title: '员工', icon: 'people' },
      hidden: true
    }
  ]
}
